//import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import ElementPlus from 'element-plus'
import App from './App.vue'
import router from './router'

import zhCn from 'element-plus/es/locale/lang/zh-cn'


import 'element-plus/dist/index.css'
import axios from 'axios'
//原端口号
//axios.defaults.baseURL='http://localhost:5167/'

axios.defaults.baseURL='http://10.222.11.13:8080/'


axios.defaults.headers.common["Authorization"] = "Bearer " + sessionStorage.getItem("Token");

const app = createApp(App)

app.use(createPinia())
app.use(router)
//国际版
app.use(ElementPlus, {
    locale: zhCn,
  })
app.mount('#app')
